namespace TaskKernel.Domain.Services.Permission
{
    public class OtherCreateS : IPermission<DepartmentPermissions>
    {
        #region IPermission<DepartmentPermissions> Members

        public Permissions GetPermissions(DepartmentPermissions app)
        {
            if ((app.Role == RoleEnum.Owner) || (app.Role == RoleEnum.Participant) || (app.Role == RoleEnum.Other))
                return new PermissionsOtherCreatePage();
            return new Permissions();
        }

        #endregion
    }
}